<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>邀好友微信订水</title>
    <meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
    <meta http-equiv="Pragma" content="no-cache" />
    <meta http-equiv="Expires" content="0" />
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <link href="css/mui.css" rel="stylesheet" />
    <link rel="stylesheet" href="./css/public.css?v=20181211" />
    <link rel="stylesheet" href="./css/refer.css?v=20181211">
    <link href="https://netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
    <script type="text/javascript" src="https://res.wx.qq.com/open/js/jweixin-1.3.2.js"></script>
    <script src='./js/jquery-3.2.1.min.js'></script>
    <script src="./js/mui.min.js"></script>
    <script src="./js/art-template.js"></script>
    <script src="./js/config.js?v=20181211"></script>
</head>
<style>

</style>
<body>
<header class="mui-bar mui-bar-nav header_change_color">
    <a style="color: #fff" class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left "></a>
    <h1 style="color: #fff" class="mui-title"></h1>
</header>
<div class="refer_content flex_center">
    <div class="qr_img_base flex_center flex_clown">
        <div style="width: 256px;height: 256px">
            <img style="width: 100%;height: 100%" id="qrcode">
        </div>
        <p>长按识别二维码</p>
        <p>关注公众号</p>
    </div>
    <!--<div id="qrcode"></div>-->

</div>
</body>
</html>
<script src='js/commen.js?v=20181211'></script>
<script>
    var mid = GetQueryString('mid');

    var success = function (res) {
        if(res.status == 1){
            url =  res.data.qr;
            var shop_name = res.data.shop_name;
            $('#qrcode').attr('src',url);
            $('.mui-title').html(shop_name);
            document.title = shop_name;
            mui.toast('二维码有效期30天');
        }
    }
    var error = function () {
        $('#qrcode').html('请求出错');
    }
    getData(commission_qr,{mid:mid},success,error);
</script>
